package com.keta.foundation.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.keta.foundation.entity.Module;

public interface ModuleDAO extends JpaRepository<Module, Long>, JpaSpecificationExecutor<Module> {

	public List<Module> findByParentId(Long ParentId);

	public Module getBySn(String sn);

	Page<Module> findByParentId(Long id, Pageable pageRequest);

	Page<Module> findByParentId(Long id, Pageable pageRequest, Specification<Module> specifications);
}
